﻿@model CoreData.OrderDetail
@{ 
    ViewBag.Title = "Update detail";
}
<div class="row-fluid">
    <div class="span12">
        <div class="head">
            <div class="isw-documents">
            </div>
            <h1>
                Detail</h1>
            <div class="clear">
            </div>
        </div>
        <div class="block-fluid tabs">
            @using (Ajax.BeginForm("AddOrUpdateDetail", "OrderManagement", new AjaxOptions { OnSuccess = "Success", HttpMethod = "Post" }, new { enctype = "multipart/form-data", @id = "validation" }))
            {
                <div class="warning-area">
                </div>
                @Html.HiddenFor(x => x.ID)
                 @Html.HiddenFor(x => x.ProductID)
                 @Html.HiddenFor(x => x.OrderID)
                <div class="row-form">
                    <div class="span2">
                        Code</div>
                    <div class="span9">
                        #@Html.DisplayTextFor(x => x.OrderID)</div>
                    <div class="clear">
                    </div>
                </div>       
                 <div class="row-form">
                    <div class="span2">
                        Quality</div>
                    <div class="span9">
                        @Html.TextAreaFor(x => x.Amount)</div>
                    <div class="clear">
                    </div>
                </div>                
                <div class="row-form">
                    <div class="span2">
                       Total money</div>
                    <div class="span9">
                        @Html.TextBoxFor(x => x.Price, new { @readonly = "true" })</div>
                    <div class="clear">
                    </div>
                </div>
                
               
                if (Helper.SessionManagement.Value("pvalue").Contains("U") || Helper.SessionManagement.Value("pvalue").Contains("C"))
                {
                <div class="row-form">
                    <div class="span2">
                    </div>
                    <div class="span9">
                        <input type="submit" class="btn btn-info span3" value="Update" /></div>
                    <div class="clear">
                    </div>
                </div>
                }

          
            }
        </div>
    </div>
</div>
